import 'package:flutter_base/generated/json/base/json_field.dart';
import 'package:flutter_base/generated/json/check_app_update_entity.g.dart';
import 'dart:convert';
export 'package:flutter_base/generated/json/check_app_update_entity.g.dart';

@JsonSerializable()
class CheckAppUpdateEntity {
	late int code = 0;
	late String message = '';
	late CheckAppUpdateData data;

	CheckAppUpdateEntity();

	factory CheckAppUpdateEntity.fromJson(Map<String, dynamic> json) => $CheckAppUpdateEntityFromJson(json);

	Map<String, dynamic> toJson() => $CheckAppUpdateEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CheckAppUpdateData {
	late String buildBuildVersion = '';
	late String forceUpdateVersion = '';
	late String forceUpdateVersionNo = '';
	late bool needForceUpdate = false;
	late String downloadURL = '';//下载链接
	late bool buildHaveNewVersion = false;
	late String buildVersionNo = '';//最新的线上app版本号
	late String buildVersion = '';
	late String buildDescription = '';
	late String buildUpdateDescription = '';
	late String appURl = '';
	late String appKey = '';
	late String buildKey = '';
	late String buildName = '';
	late String buildIcon = '';
	late String buildFileKey = '';
	late String buildFileSize = '';

	CheckAppUpdateData();

	factory CheckAppUpdateData.fromJson(Map<String, dynamic> json) => $CheckAppUpdateDataFromJson(json);

	Map<String, dynamic> toJson() => $CheckAppUpdateDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}